package com.fclassroom.logger;

import com.fclassroom.logger.entity.LogCache;
import com.jason.framework.StaticCommonVar;
import com.jason.framework.util.SystemProperties;

/*
                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
             佛祖保佑       永无BUG
	佛曰:  
		写字楼里写字间，写字间里程序员；  
		程序人员写程序，又拿程序换酒钱。  
		酒醒只在网上坐，酒醉还来网下眠；  
		酒醉酒醒日复日，网上网下年复年。  
		但愿老死电脑间，不愿鞠躬老板前；  
		奔驰宝马贵者趣，公交自行程序员。  
		别人笑我忒疯癫，我笑自己命太贱；  
		不见满街漂亮妹，哪个归得程序员？
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
	@author jason
    @date   2015年12月24日 下午4:07:15
	Copyright (c) 2015,  email:14902300@qq.com All Rights Reserved. 
*/
public class LoggerVar extends StaticCommonVar {
	public final static String log_delim = "\\|";
	/**
	 * 每个 topology需要设定唯一的consumergroup
	 **/
	public final static String STORM_TEACHER_CONSUMER_GROUP = SystemProperties.getProperties("storm_teacher_consumer_group");
	/**
	 * email的设置
	 */
	public final static String EMAIL_ACCOUNT = SystemProperties.getProperties("email_account");
	public final static String EMAIL_PASSWORD = SystemProperties.getProperties("email_password");
	public final static String EMAIL_SMTP_HOST = SystemProperties.getProperties("email_smtp_host");
	/**
	 * kafka的topic 系统日志
	 */
	public final static String kafka_topic_systemLog = SystemProperties.getProperties("kafka_topic_systemLog");
	/**
	 * kafka的topic 用户日志
	 */
	public final static String kafka_topic_operaterLog = SystemProperties.getProperties("kafka_topic_operaterLog");

	public static LogCache LOG_CACHE;
	/** ali云sls常量 */
	public static String ALI_SLS_ENDPOINT = SystemProperties.getProperties("ali.sls.endpoint");
	public static String ALI_SLS_SYSTEM_ENDPOINT = SystemProperties.getProperties("ali.sls.system.endpoint");
	public static String ALI_SLS_ACCESSKEYID = SystemProperties.getProperties("ali.sls.accessKeyId");
	public static String ALI_SLS_ACCESSKEYSECRET = SystemProperties.getProperties("ali.sls.accessKeySecret");
	public static String ALI_SLS_PROJECT = SystemProperties.getProperties("ali.sls.project");
	public static String ALI_SLS_SYSTEM_PROJECT = SystemProperties.getProperties("ali.sls.system.project");
	public static String ALI_SLS_LOGSTORE = SystemProperties.getProperties("ali.sls.logstore");
	public static int ALI_SLS_OFFSET = Integer.valueOf(SystemProperties.getProperties("ali.sls.offset"));
	public static int ALI_SLS_SIZE = Integer.valueOf(SystemProperties.getProperties("ali.sls.size"));
	public static String ALI_SLS_TOPIC = SystemProperties.getProperties("ali.sls.topic");
	public static String ALI_SLS_SOURCE = SystemProperties.getProperties("ali.sls.source");
	/* ali云sls并发参数 */
	public static int LOG_GROUP_SIZE = Integer.valueOf(SystemProperties.getProperties("ali.sls.producer.poolSize"));;
	public static int PRODUCER_POOLSIZE = Integer.valueOf(SystemProperties.getProperties("ali.sls.producer.poolSize"));;
	public static int CONSUMER_POOLSIZE = Integer.valueOf(SystemProperties.getProperties("ali.sls.consumer.poolSize"));;
	public static int QUEUE_MAXCAPACITY = Integer.valueOf(SystemProperties.getProperties("ali.sls.queue.maxCapacity"));;
	/**
	 * 模板消息接口
	 */
	public final static String SEND_TEMPLATE = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s";

	// 网易云信：发送验证码
	public static final String WY_SEND_CODE = "https://api.netease.im/sms/sendcode.action";
	// 网易云信：发送模板短信
	public static final String WY_SEND_TEMPLATE = "https://api.netease.im/sms/sendtemplate.action";
	// 网易云信：验证Code
	public static final String VERIFY_CODE = "https://api.netease.im/sms/verifycode.action";
	// 网易云信 appKey
	public static final String WY_APPKEY = "4691af0a9460db8561570129b0a4b0b3";
	public static final String WY_APPSERECT = "37446a25d55c";
}
